package main

import "fmt"

func main() {
	arr := [...]int{1, 2, 3}
	length := len(arr)
	for i := 0; i < length/2; i++ {
		// temp := arr[length-1-i]
		// arr[length-1-i] = arr[i]
		// arr[i] = temp
		arr[i], arr[length-1-i] = arr[length-1-i], arr[i]
	}
	fmt.Println(arr)
}
